
class ThreadDem implements Runnable{
	public void run(){
		try{
		for(char j = 'a'; j<='z';j++){
			 Thread.sleep(100);
			System.out.print(j);
			
		}
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}
public class ThreadDemo implements Runnable {

	 public void run(){
		 try{
		for(int i=1;i<=26;i++){
			Thread.yield();
			 Thread.sleep(100);
			System.out.print(i);
		}
		 }catch(Exception e){
				e.printStackTrace();
			}
	}
	/**
	 * @param args
	 */
	public static void main(String[] args)throws Exception {
		// TODO Auto-generated method stub
		ThreadDemo td = new ThreadDemo();
		Thread t = new Thread(td);
		ThreadDem tm = new ThreadDem();
		Thread t2 = new Thread(tm);
		t2.start();
		//t2.join();
		t.start();
		//t.join();
		
	}

}
